﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShuiBiaoXXCX_YB.aspx.cs" Inherits="Web.Pages.YongShui._12.ChaXunGL.ShuiBiaoXXCX_YB" Theme="Default"%>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../css/inputBgColor.css" rel="stylesheet" />
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 220;
            $("#condition").css("height", height);
            $("#jynsj").css("height", height);

        });

        //计划用水量输入框验证
        var value = false;

        function TextChange(obj) {
            if (value) {
                obj.SetText(obj.GetText() * 10000);
            }

            if (obj.GetText() == "") {
                obj.SetText("0");
            }
        }

        function GetCheckBoxValue(s, e) {
            value = s.GetChecked();
        }

        function GetInt(string) {
            return parseInt($("#" + string + "").val());
        }

        function InitValue(s, e) {
            if (s.GetText() == "0") {
                s.SetText(" ");
            }
        }
        function GVScrollToVisibleIndexOnClient(obj, index) {
            obj.SetVerticalScrollPosition(index * 25);
        }

        function first(obj, msg, key) {
            obj.SetFocusedRowIndex(0);
            hdCollection.Set(key, obj.GetRowKey(0));
            ASPxCallback1.PerformCallback(msg);
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function last(obj, msg, key) {
            if (obj.GetFocusedRowIndex() == 0) {
                alert("当前已是第一条");
            }
            else {
                hdCollection.Set(key, obj.GetRowKey(obj.GetFocusedRowIndex() - 1));
                obj.SetFocusedRowIndex(obj.GetFocusedRowIndex() - 1);
                ASPxCallback1.PerformCallback(msg);
            }
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function next(obj, msg, key) {
            if (obj.GetFocusedRowIndex() == obj.GetVisibleRowsOnPage() - 1) {
                alert("当前已是最后一条");
            }
            else {
                hdCollection.Set(key, obj.GetRowKey(obj.GetFocusedRowIndex() + 1));
                obj.SetFocusedRowIndex(obj.GetFocusedRowIndex() + 1);
                ASPxCallback1.PerformCallback(msg);
            }
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function final(obj, msg, key) {
            hdCollection.Set(key, obj.GetRowKey(obj.GetVisibleRowsOnPage() - 1));
            obj.SetFocusedRowIndex(obj.GetVisibleRowsOnPage() - 1);
            ASPxCallback1.PerformCallback(msg);
            GVScrollToVisibleIndexOnClient(obj, obj.GetFocusedRowIndex());
        }

        function rowClick() {
            if (gvtab1.GetFocusedRowIndex() != -1) {
                hdCollection.Set("S_SHUIBIAOBH", gvtab1.GetRowKey(gvtab1.GetFocusedRowIndex()));
                ASPxCallback1.PerformCallback("setinfo");
            }
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (type == "setinfo") {
                txtShuiBiaoH.SetText(arr[2]);
                txtXingZhengQK.SetText(arr[3]);
                txtSheShuiDXDM.SetText(arr[4]);
                txtSheShuiDXMC.SetText(arr[5]);
                txtChaoBiaoRQ.SetText(arr[6]);
                txtBiaoFenL.SetText(arr[7]);
                txtShuiBiaoHM2.SetText(arr[8]);
                txtChaoMa.SetText(arr[9]);
                txtYongShuiL.SetText(arr[10]);
                txtShuiBiaoDZ2.SetText(arr[11]);
                txtChaoBiaoZT.SetText(arr[12]);
                txtShuiSiZT2.SetText(arr[13]);
                txtKouJing.SetText(arr[14]);
                txtZongBiaoH.SetText(arr[15]);
                txtGuanWangKH2.SetText(arr[16]);
                txtBiaoCeH.SetText(arr[17]);
                txtZhuangBiaoRQ.SetText(arr[18]);
                txtYongShuiJ.SetText(arr[19]);
            }

        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            一般管理水表信息查询
        </div>
        <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        </div>
         <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
        <div style="border: 1px solid #d0e4fe; text-align: right;">
            <table>
                <tr>
                    <td style="width: 7%;"><span style="font-size: 12px;">抄表部门：</span></td>
                    <td style="width: 8%;">
                        <asp:Panel runat="server" ID="Panel1">
                            <dx:ASPxComboBox runat="server" ID="cmbChaoBiaoBMtab1" Width="90%">
                                <Items>
                                    <dx:ListEditItem Text="全部" Value="" Selected="true" />
                                </Items>
                            </dx:ASPxComboBox>
                        </asp:Panel>
                    </td>
                    <td style="width: 6%;"><span style="font-size: 12px;">行政区：</span></td>
                    <td style="width: 7%;">
                        <asp:Panel runat="server" ID="Panel2">
                            <dx:ASPxComboBox runat="server" ID="cmbXingZhengQtab1" Width="90%">
                                <Items>
                                    <dx:ListEditItem Text="全部" Value="全部" Selected="true" />
                                </Items>
                            </dx:ASPxComboBox>
                        </asp:Panel>
                    </td>
                    <td style="width: 6%;"><span style="font-size: 12px;">水量年：</span></td>
                    <td style="width: 7%;">
                        <asp:Panel runat="server" ID="Panel3">
                            <dx:ASPxComboBox runat="server" ID="cmbShuiLiangYtab1" Width="90%">
                            </dx:ASPxComboBox>
                        </asp:Panel>
                    </td>
                    <td style="width: 6%;"><span style="font-size: 12px;">水量月：</span></td>
                    <td style="width: 7%;">
                        <asp:Panel runat="server" ID="Panel16">
                            <dx:ASPxComboBox runat="server" ID="cmbShuiLiangMtab1" Width="90%">
                            </dx:ASPxComboBox>
                        </asp:Panel>
                    </td>
                    
                    <%--<td style="float:right;">
                        <dx:ASPxButton runat="server" ID="btnExportExcel" Text="导出Excel"></dx:ASPxButton>
                    </td>--%>
                </tr>
            </table>
        </div>
        <div>
            <div>
                <div id="condition" style="float: left; border: 1px solid #d0e4fe; width: 17%;">
                    <table style=" width: 100%;">
                        <tr>
                            <td style="width: 45%;">
                                <dx:ASPxRadioButton runat="server" ID="rbnShuiBiaoBH" Text="水表编号" GroupName="1" ClientInstanceName="rbnShuiBiaoBH"></dx:ASPxRadioButton>
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtShuiBiaoBH" Width="100%">
                                    <ClientSideEvents GotFocus="function(s,e){rbnShuiBiaoBH.SetChecked(true);}" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 45%;">
                                <dx:ASPxRadioButton runat="server" ID="rbnYongHuH" Text="用户号" GroupName="1" ClientInstanceName="rbnYongHuH"></dx:ASPxRadioButton>
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="100%">
                                    <ClientSideEvents GotFocus="function(s,e){rbnYongHuH.SetChecked(true);}" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnShuiBiaoHM" Text="水表户名" GroupName="1" ClientInstanceName="rbnShuiBiaoHM"></dx:ASPxRadioButton>

                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxTextBox runat="server" ID="txtShuiBiaoHM" Width="100%">
                                    <ClientSideEvents GotFocus="function(s,e){rbnShuiBiaoHM.SetChecked(true);}" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnShuiBiaoDZ" Text="水表地址" GroupName="1" ClientInstanceName="rbnShuiBiaoDZ"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxTextBox runat="server" ID="txtShuiBiaoDZ" Width="100%">
                                    <ClientSideEvents GotFocus="function(s,e){rbnShuiBiaoDZ.SetChecked(true);}" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnSheShuiDXFL" Text="涉水对象分类" GroupName="1" ClientInstanceName="rbnSheShuiDXFL"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Panel runat="server" ID="Panel7">
                                    <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_q1" Width="100%">
                                        <Items>
                                            <dx:ListEditItem Text="" Value="" Selected="true" />
                                            <dx:ListEditItem Text="=" Value="" />
                                            <dx:ListEditItem Text=">" Value="0" />
                                            <dx:ListEditItem Text=">=" Value="1" />
                                            <dx:ListEditItem Text="<" Value="1" />
                                            <dx:ListEditItem Text="<=" Value="1" />
                                            <dx:ListEditItem Text="<>" Value="1" />
                                        </Items>
                                        <ClientSideEvents GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}" />
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                            <td>
                                <asp:Panel runat="server" ID="Panel8">
                                    <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_h1" Width="100%">
                                        <ClientSideEvents GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}" />
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Panel runat="server" ID="Panel9">
                                    <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_q2" Width="100%">
                                        <Items>
                                            <dx:ListEditItem Text="" Value="" Selected="true" />
                                            <dx:ListEditItem Text="=" Value="" />
                                            <dx:ListEditItem Text=">" Value="0" />
                                            <dx:ListEditItem Text=">=" Value="1" />
                                            <dx:ListEditItem Text="<" Value="1" />
                                            <dx:ListEditItem Text="<=" Value="1" />
                                            <dx:ListEditItem Text="<>" Value="1" />
                                        </Items>
                                        <ClientSideEvents GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}" />
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                            <td>
                                <asp:Panel runat="server" ID="Panel10">
                                    <dx:ASPxComboBox runat="server" ID="cmbSheShuiDXFL_h2" Width="100%">
                                        <ClientSideEvents GotFocus="function(s,e){rbnSheShuiDXFL.SetChecked(true);}" />
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnChaoBiaoZT" Text="抄表状态" GroupName="1" ClientInstanceName="rbnChaoBiaoZT"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Panel runat="server" ID="Panel5">
                                    <dx:ASPxComboBox runat="server" ID="cbmChaoBiaoZT" Width="100%">
                                        <ClientSideEvents GotFocus="function(s,e){rbnChaoBiaoZT.SetChecked(true);}" />
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnShuiSiZT" Text="水司状态" GroupName="1" ClientInstanceName="rbnShuiSiZT"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <%--<asp:Panel runat="server" ID="Panel6">
                                    <dx:ASPxComboBox runat="server" ID="cbmShuiSiZT" Width="100%">
                                        <ClientSideEvents GotFocus="function(s,e){rbnShuiSiZT.SetChecked(true);}" />
                                    </dx:ASPxComboBox>
                                </asp:Panel>--%>
                                <dx:ASPxTextBox runat="server" ID="txtShuiSiZT" Width="100%">
                                    <ClientSideEvents  GotFocus="function(s,e){rbnShuiSiZT.SetChecked(true);}"/>
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnGuanWangKH" Text="管网块号" GroupName="1" ClientInstanceName="rbnGuanWangKH"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxTextBox runat="server" ID="txtGuanWangKH" Width="100%">
                                    <ClientSideEvents GotFocus="function(s,e){rbnGuanWangKH.SetChecked(true);}" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnCeHao" Text="册号" GroupName="1" ClientInstanceName="rbnCeHao"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxTextBox runat="server" ID="txtCeHao" Width="100%">
                                    <ClientSideEvents GotFocus="function(s,e){rbnCeHao.SetChecked(true);}" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnDanJia" Text="单价" GroupName="1" ClientInstanceName="rbnDanJia"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Panel runat="server" ID="Panel12">
                                    <dx:ASPxComboBox runat="server" ID="cbmDanJia" Width="100%">
                                        <Items>
                                            <dx:ListEditItem Text="" Value="" Selected="true" />
                                            <dx:ListEditItem Text="=" Value="" />
                                            <dx:ListEditItem Text=">" Value="0" />
                                            <dx:ListEditItem Text=">=" Value="1" />
                                            <dx:ListEditItem Text="<" Value="2" />
                                            <dx:ListEditItem Text="<=" Value="3" />
                                            <dx:ListEditItem Text="<>" Value="4" />
                                        </Items>
                                        <ClientSideEvents GotFocus="function(s,e){rbnDanJia.SetChecked(true);}" />
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                            <td>
                                <dx:ASPxTextBox runat="server" ID="txtDanJia" Width="100%">
                                    <ClientSideEvents GotFocus="function(s,e){rbnDanJia.SetChecked(true);}" />
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxRadioButton runat="server" ID="rbnXuNiB" Text="虚拟表" GroupName="1" ClientVisible="false"></dx:ASPxRadioButton>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div style="float: right; border: 1px solid #d0e4fe; width: 82%;">
                <div>
                    <table>
                        <tr>
                            <td style="width: 70px;">
                                <div onclick="first(gvtab1,'setinfo','S_SHUIBIAOBH');">
                                    <img src="../../../Images/first.jpg" /></div>
                            </td>
                            <td style="width: 70px;">
                                <div onclick="last(gvtab1,'setinfo','S_SHUIBIAOBH');">
                                    <img src="../../../Images/last.jpg" /></div>
                            </td>
                            <td style="width: 70px;">
                                <div onclick="next(gvtab1,'setinfo','S_SHUIBIAOBH');">
                                    <img src="../../../Images/next.jpg" /></div>
                            </td>
                            <td style="width: 70px;">
                                <div onclick="final(gvtab1,'setinfo','S_SHUIBIAOBH');">
                                    <img src="../../../Images/final.jpg" /></div>
                            </td>
                            <td style="width: 8%"><span style="font-size: 12px;">水量范围：</span></td>
                            <td style="width: 8%">
                                <asp:Panel runat="server" ID="Panel18">
                                    <dx:ASPxComboBox runat="server" ID="cbmShuiLiangFW1" Width="90%">
                                        <Items>
                                            <dx:ListEditItem Text="" Value="" Selected="true" />
                                            <dx:ListEditItem Text="=" Value="" />
                                            <dx:ListEditItem Text=">" Value="0" />
                                            <dx:ListEditItem Text=">=" Value="1" />
                                            <dx:ListEditItem Text="<" Value="2" />
                                            <dx:ListEditItem Text="<=" Value="3" />
                                            <dx:ListEditItem Text="<>" Value="4" />
                                        </Items>
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                            <td style="width: 8%">
                                <dx:ASPxTextBox runat="server" ID="txtShuiLiangFW1" Width="90%"></dx:ASPxTextBox>
                            </td>
                            <td style="width: 8%">
                                <asp:Panel runat="server" ID="Panel19">
                                    <dx:ASPxComboBox runat="server" ID="cbmShuiLiangFW2" Width="90%">
                                        <Items>
                                            <dx:ListEditItem Text="" Value="" Selected="true" />
                                            <dx:ListEditItem Text="=" Value="" />
                                            <dx:ListEditItem Text=">" Value="0" />
                                            <dx:ListEditItem Text=">=" Value="1" />
                                            <dx:ListEditItem Text="<" Value="2" />
                                            <dx:ListEditItem Text="<=" Value="3" />
                                            <dx:ListEditItem Text="<>" Value="4" />
                                        </Items>
                                    </dx:ASPxComboBox>
                                </asp:Panel>
                            </td>
                            <td style="width: 8%">
                                <dx:ASPxTextBox runat="server" ID="txtShuiLiangFW2" Width="90%"></dx:ASPxTextBox>
                            </td>
                            <td>&nbsp;&nbsp;</td>
                            <td>
                                <dx:ASPxLoadingPanel runat="server" ID="LoadPanelTab1" ClientInstanceName="LoadPanelTab1" Text="正在查询"></dx:ASPxLoadingPanel>
                                <dx:ASPxButton runat="server" ID="btnChaXunTab1" Text="查询" OnClick="btnChaXunTab1_Click" AutoPostBack="true">
                                    <ClientSideEvents Click="function(s,e){LoadPanelTab1.Show();}" />
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL">
                                    <ClientSideEvents Click="function(s,e){btnExport.OnClick();}" />
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <dx:ASPxGridView ID="gvYueChaoBQKTab1" ClientInstanceName="gvtab1" runat="server" AutoGenerateColumns="False" KeyFieldName="S_SHUIBIAOBH"
                        EnableCallBacks="true" ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="S_SHUIBIAOBH" Caption="水表号" Width="75">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="60">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_SHUIBIAOHM" Caption="水表户名" Width="280">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_CH" Caption="册号" Width="60">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_SHANGYUECM" Caption="上月抄码" Width="75">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="D_CHAOBIAORQ" Caption="抄表日期" Width="80" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_BENYUECM" Caption="本月抄码" Width="75">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_YONGSHUIL" Caption="水量" Width="60">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="CHAOBIAOZT" Caption="抄表状态" Width="75">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_YUANCHAOBZT" Caption="水司状态" Width="75">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="N_YSJ" Caption="单价" Width="60">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_BFL" Caption="表分类价" Width="">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_SHESHUIDXFLMC" Caption="涉水对象名称" Width="80">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_CHAOBIAOZQ" Caption="抄表周期" Width="">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_SHUIBIAODZ" Caption="表地址" Width="">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_TYPE" Caption="表分类" Width="">
                                <%--S_BFL--%>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_MINGCHENG" Caption="行政区" Width="">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_KUAIHAO" Caption="管网块号" Width="">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="I_KOUJING" Caption="口径" Width="">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_BX" Caption="表型" Width="">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="D_ZHUANGBIAORQ" Caption="装表日期" Width="80" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_ZBH" Caption="总表号" Width="">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="300" />
                        <SettingsPager Mode="EndlessPaging" PageSize="100" AlwaysShowPager="true" FirstPageButton-Visible="true" />
                        <Settings ShowFooter="True" />
                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                        <ClientSideEvents  FocusedRowChanged="function(s,e){rowClick();}" /><%--Init="function(s,e){AdjustSize(400,gvtab1);}"--%>
                        <%--<Settings  VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />--%>
                        <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                    </dx:ASPxGridView>
                </div>
                <div style="margin-top: 20px;">
                    <fieldset style="border: 1px solid #d0e4fe;">
                        <legend>合计</legend>
                        <table style="text-align: right; height: 30px; width: 100%;">
                            <tr>
                                <td><span style="font-size: 12px;">水表总数：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtShuiBiaoZS" Width="80%" Enabled="false" HorizontalAlign="Right"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">总水量：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtZongShuiL" Width="80%" Enabled="false" HorizontalAlign="Right"></dx:ASPxTextBox>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <br />
                    <fieldset style="border: 1px solid #d0e4fe;">
                        <legend>自来水公司数据</legend>
                        <table style="text-align: right; height: 150px; width: 100%;">
                            <tr>
                                <td><span style="font-size: 12px;">水表号：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtShuiBiaoH" Width="80%" ClientEnabled="false" ClientInstanceName="txtShuiBiaoH"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">行政区块：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtXingZhengQK" Width="80%" ClientEnabled="false" ClientInstanceName="txtXingZhengQK"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">涉水对象代码：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtSheShuiDXDM" Width="80%" ClientEnabled="false" ClientInstanceName="txtSheShuiDXDM"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">涉水对象名称：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtSheShuiDXMC" Width="100%" ClientEnabled="false" ClientInstanceName="txtSheShuiDXMC"></dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td><span style="font-size: 12px;">抄表日期：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtChaoBiaoRQ" Width="80%" ClientEnabled="false" ClientInstanceName="txtChaoBiaoRQ"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">表分类：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtBiaoFenL" Width="80%" ClientEnabled="false" ClientInstanceName="txtBiaoFenL"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">水表户名：</span></td>
                                <td colspan="3">
                                    <dx:ASPxTextBox runat="server" ID="txtShuiBiaoHM2" Width="100%" ClientEnabled="false" ClientInstanceName="txtShuiBiaoHM2"></dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td><span style="font-size: 12px;">抄码：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtChaoMa" Width="80%" ClientEnabled="false" ClientInstanceName="txtChaoMa"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">用水量：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtYongShuiL" Width="80%" ClientEnabled="false" ClientInstanceName="txtYongShuiL"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">水表地址：</span></td>
                                <td colspan="3">
                                    <dx:ASPxTextBox runat="server" ID="txtShuiBiaoDZ2" Width="100%" ClientEnabled="false" ClientInstanceName="txtShuiBiaoDZ2"></dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td><span style="font-size: 12px;">抄表状态：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtChaoBiaoZT" Width="80%" ClientEnabled="false" ClientInstanceName="txtChaoBiaoZT"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">水司状态：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtShuiSiZT2" Width="80%" ClientEnabled="false" ClientInstanceName="txtShuiSiZT2"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">口径：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtKouJing" Width="80%" ClientEnabled="false" ClientInstanceName="txtKouJing"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">总表号：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtZongBiaoH" Width="100%" ClientEnabled="false" ClientInstanceName="txtZongBiaoH"></dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td><span style="font-size: 12px;">管网块号：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtGuanWangKH2" Width="80%" ClientEnabled="false" ClientInstanceName="txtGuanWangKH2"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">表册号：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtBiaoCeH" Width="80%" ClientEnabled="false" ClientInstanceName="txtBiaoCeH"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">装表日期：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtZhuangBiaoRQ" Width="80%" ClientEnabled="false" ClientInstanceName="txtZhuangBiaoRQ"></dx:ASPxTextBox>
                                </td>
                                <td><span style="font-size: 12px;">用水价：</span></td>
                                <td>
                                    <dx:ASPxTextBox runat="server" ID="txtYongShuiJ" Width="100%" ClientEnabled="false" ClientInstanceName="txtYongShuiJ"></dx:ASPxTextBox>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
            </div>
        </div>
            </ContentTemplate>
        </asp:UpdatePanel>
          
         <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>   
    </form>
</body>
</html>
